package cn.darkhorse.alarm.service;

import cn.darkhorse.alarm.dto.AlarmSettingPonitTablesDTO;
import cn.darkhorse.alarm.dto.PointTableParamsDTO;
import cn.darkhorse.alarm.pojo.AlarmParameterSettings;
import cn.darkhorse.device.pojo.IotPointTable;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author maoguanjun
 * @since 2023-04-07
 */
public interface AlarmParameterSettingsService extends IService<AlarmParameterSettings> {
     
     
     Map<Long, AlarmParameterSettings> getMap(LambdaQueryWrapper<AlarmParameterSettings> wrapper);
     
     /**
      * 保存
      * @param ptParmas
      */
     String saveParams ( List<PointTableParamsDTO> ptParmas);
     
     /**
      * 告警参数 已关联的点表信息
      * @param pointTableId
      * @return
      */
     List<AlarmSettingPonitTablesDTO> settingPonitTableList(Set<Long> pointTableId,Long deviceId,String piontName);
     
}
